package com.example.thread.demo.alternate.print;

public class ThreadB extends Thread {

    private Test5 test5;

    public ThreadB(Test5 test5) {
        this.test5 = test5;
    }

    @Override
    public void run() {
        test5.printThread2();
    }
}
